﻿<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="WebApplication3.Contact" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <style>
        th {
            height: 30px;
            width: 80px;
            text-align: center;
        }

        td {
            width: 80px;
            height: 50px;
            text-align: center;
        }
    </style>
<%--    <br />
    <br />    
    <asp:Button ID="Button1" runat="server" Text="添加" OnClick ="Button1_Click"  />
    <br />
    <asp:GridView ID="GridView1" runat="server" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowUpdating="GridView1_RowUpdating" OnRowEditing="GridView1_RowEditing" Style="margin-top : 20px " >
        <Columns>
            <asp:CommandField HeaderText="高端操作" ShowDeleteButton="True" ShowEditButton="True" ShowCancelButton ="True"  />
        </Columns>
    </asp:GridView>--%>
    <br />
    <br />
    <asp:Button ID="Button1" runat="server" Text="增加" Width ="50px" Height ="40px" OnClick ="Button1_Click1" />
    <asp:GridView runat ="server" ID ="GridView1" AutoGenerateColumns ="false"  OnRowCancelingEdit ="GridView1_RowCancelingEdit1" OnRowDeleting ="GridView1_RowDeleting1" OnRowUpdating ="GridView1_RowUpdating1" OnRowEditing ="GridView1_RowEditing1" style ="margin-top :30px" Width ="800px">
        <Columns >
         <asp:BoundField DataField ="uid" HeaderText="ID" ReadOnly ="true" />
         <asp:BoundField DataField ="username" HeaderText="用户名" />
         <asp:BoundField DataField ="password" HeaderText="密码" />
         <asp:BoundField DataField ="remarks" HeaderText="备注" />
         <asp:CommandField ShowEditButton ="true" ShowDeleteButton ="true" ShowCancelButton ="true" HeaderText ="高端操作" />
        </Columns>
    </asp:GridView>

</asp:Content>
